﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WSMX_Invoice.MX.Providers
{
    public class ProviderFactory
    {

        public ProviderFactory() { }


        public static Provider getProvider(TypeProviders _provider)
        {
            Provider proveedor;

            switch (_provider)
            {
                case TypeProviders.Diverza: proveedor = new Prov_Diverza(); break;
                case TypeProviders.Tralix: proveedor = new Prov_Tralix(); break;
                default: throw new Exception(Resources.Errors.PROVIDER_NOT_VALID); break;
            }

            return proveedor;
        }
    }
}
